<div class="bjui-pageContent">
    <form data-toggle="ajaxform"
          data-options="{closeCurrent: true, okAfterCallback: freshPostPersonnel}">
        <input type="hidden" name="id" value="{{$noticeInfo['id']}}">
        <div class="bjui-row col-3">


            <label class="row-label">通知标题</label>
            <div class="row-input">
                <input readonly type="text" class="input-sm"  value="{{$noticeInfo['title']}}" name="title">
            </div><br/>

            <label class="row-label">通知范围</label>
            <div class="row-input">
                <textarea cols="30" readonly rows="4">{{$noticeInfo['range']}}</textarea>
            </div>
            <br/>


            <label class="row-label">发布日期</label>
            <div class="row-input required">
                <input readonly type="text" value="{{date('Y-m-d',$noticeInfo['release_time'])}}"  name="release_time" >
            </div><br/>

            <label class="row-label">关键词</label>
            <div class="row-input">
                <input readonly type="text" class="input-sm"  value="{{$noticeInfo['key_word']}}" name="key_word"><span>多个关键字以"|"符号分隔。(用于搜索相关通知)</span>
            </div><br/>
            <label class="row-label">上传附件</label>
            <div class="row-input" style="width:500px">
                @if($noticeInfo['attachment_url'])
                    <p>{{$noticeInfo['attachment_url']}}</p>
                    <a href="/admin/administration/notice/download-attachments?download=.{{$noticeInfo['attachment_url']}}" data-toggle="ajaxdownload" {{--data-options="{url:'/admin/personnel/report/download-attachments'}"--}}>下载附件</a>
                @endif
                @if(!$noticeInfo['attachment_url'])
                    暂无附件
                @endif
            </div><br/>


            <div id="public_module_content">
                <label class="row-label">通知内容</label>
                <div class="row-input" >
                    {!! $noticeInfo['content'] !!}
                </div>
                <br/>
            </div>

            <br/>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">取消</button>
        </li>

    </ul>
</div>
<script>
    function freshPostPersonnel() {
        $("#check-notice-list").datagrid("refresh", true);
    }
</script>